package cn.edu.guet.service.login.impl;

import cn.edu.guet.bean.login.College_login;
import cn.edu.guet.bean.login.Major;
import cn.edu.guet.mapper.login.CollegeMapper;
import cn.edu.guet.service.login.CollegeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollegeServiceImpl implements CollegeService {
    @Autowired
    private CollegeMapper collegeMapper;
    //�õ����е�ѧԺ
    @Override
    public List<College_login> getAllCollege() {
        return collegeMapper.getAllCollege();
    }
    //�õ�ָ��ѧԺ�µ�����רҵ
    @Override
    public List<Major> getAllMajor(String cid) {
        return collegeMapper.getAllMajor(cid);
    }

}
